#include "XMLAttribute.h"

XMLAttribute::XMLAttribute(void)
{
}

XMLAttribute::~XMLAttribute(void)
{
}

const char* XMLAttribute::Parse( const char* pBuff )
{
	pBuff = SkipWhiteSpace( pBuff );

	pBuff = ReadName( pBuff, m_sName );

	pBuff = SkipWhiteSpace( pBuff );

	if( *pBuff != '=' )
		return NULL;

	++pBuff;
	pBuff = SkipWhiteSpace( pBuff );

	if( *pBuff != '\"' )
		return NULL;

	++pBuff;

	pBuff = ReadName( pBuff, m_sValue );

	if( *pBuff != '\"' )
		return NULL;

	++pBuff;

	return pBuff;
}
